package com.luu.game.service.logic.elfPropertyFactory;

import com.luu.game.constant.ElfPropertyConstant;

public class WaterElfProperty implements BaseElfProperty {
    @Override
    public Double isPropertyRestrain(String defendProperty) {
        if (ElfPropertyConstant.GRASS.equals(defendProperty)) return -0.25;
        if (ElfPropertyConstant.FIRE.equals(defendProperty)) return 0.25;
        return 1d;
    }
}
